home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
usenet
/
sources
/
volume90
/
rexx
/
qf
/
part01
/
qfquit.txed
< prev
next >
Wrap
Text File
|
1990-05-20
|
520b
|
33 lines
/*
* qfquit.txed
*/
arg save err .
call close stdin
if ~datatype(save,'N') then save = 1
if ~datatype(err,'N') then err = 5
quit = 0
if save then do
'write'
quit = 1
end
else do
call Open(stdin,'con:80/120/400/40')
call writeln(stdin,'This file won''t be saved!')
options prompt 'Are you sure you want to quit? '
pull answer
call close stdin
if( abbrev('YES',translate(answer),1) ) then
quit = 1
else
quit = 0
end
if quit then
address REXXQFPORT 'QUIT' err
else
'msg qfquit: Whew! That was close!'